<div id="main-content">
  <div class="container-fluid">
    <ul class="breadcrumb">
			<li><a href="<?=  site_url("outlet/aktifitas/milik") ?>">Back To Outlet</a></li>
		</ul>
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-block">
          <?php
          if($message == 'filed'){
          ?>
          <div class="alert alert-error fade in">
            <button data-dismiss="alert" class="close" type="button">×</button>
            <strong>Filed!</strong> Fail to save data.
          </div>
          <?php
          }
          if($message == 'sukses'){
          ?>
          <div class="alert alert-success fade in">
            <button data-dismiss="alert" class="close" type="button">×</button>
            <strong>Success!</strong> Now you have new user.
          </div>
          <?php
          }
          ?>
          <div class="widget-head">
            <h5><?=$title_table?></h5>
<!--            <div class="widget-control pull-right">
              <a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?=  site_url("outlet/add-new") ?>"><i class="icon-plus"></i> Add New</a></li>
                <li><a href="#"><i class="icon-ok"></i> Active</a></li>
                <li><a href="#"><i class="icon-minus-sign"></i> No-Active</a></li>
                <li><a href="#"><i class="black-icons pdf_document"></i> Export to PDF</a></li>
                <li><a href="<?=  site_url("outlet/export-xls") ?>"><i class="black-icons excel_document"></i> Export to XLS</a></li>
              </ul>
            </div>-->
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy table">
                <thead>
                  <tr>
                    <th>No</th>
                    <th>Name</th>
                    <th>Outlet</th>
                    <th>Option</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  if(is_array($data)){
                    $no = 1;
                    foreach ($data as $key => $value) {
                      $link_edit = site_url("outlet/aktifitas/detail/".$value->id_actifity_report);
                      $bulan = array(
                          "1" =>  "Januari",
                          "2" =>  "Februari",
                          "3" =>  "Maret",
                          "4" =>  "April",
                          "5" =>  "Mei",
                          "6" =>  "Juni",
                          "7" =>  "Juli",
                          "8" =>  "Agustus",
                          "9" =>  "September",
                          "10" =>  "Oktober",
                          "11" =>  "Nopember",
                          "12" =>  "Desember",
                      );
                      print <<<EOD
                  <tr>
                    <td>{$no}</td>
                    <td>{$value->name}</td>
                    <td>{$value->outlet}</td>
                    <td>
                      <a href="{$link_edit}">Detail</a>
                    </td>
                  </tr>
EOD;
                          $no++;
                    }
                  }
                  ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>